
public class D2 {
    enum FreshJuiceSize { SMALL, MEDIUM, LARGE}
    FreshJuiceSize size;

    public static void main(String[] args) {

        // inner enum define
        D2Test t = new D2Test();
        t.test1();
    }

}

class D2Test {
    public void test1() {
        D2 juice = new D2();
        juice.size = D2.FreshJuiceSize.MEDIUM;
        System.out.println("Test passed");
    }
}